package com.wy.controller;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.wy.common.R;

import com.wy.service.IAuxiliaryCheckService;
import com.wy.entity.AuxiliaryCheck;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  药品表对应的控制器
 * </p>
 *
 * @author 王昭贵
 * @since 2023-04-20
 */
@RestController
@RequestMapping("/auxiliary-check")
public class AuxiliaryCheckController {

    @Resource
    private IAuxiliaryCheckService auxiliaryCheckService;

    @GetMapping("/list")
    public R getList() {
        List<AuxiliaryCheck> list = auxiliaryCheckService.list(new QueryWrapper<AuxiliaryCheck>().orderByDesc("id"));
        return R.success(list);

    }


}

